# app/api/v1/root.rb
module V1
  class Root < Grape::API
    version :v1
    format :json

    mount V1::Authors
    mount V1::Books

    # V1::Rootの末尾に追記

    add_swagger_documentation(
        doc_version: '1.0.0',
        info: {
            title: 'grape-on-rails-api1111',
            description: 'grape-on-rails-apiのAPIドキュメント'
        }
        #,
        #    mount_path: 'swagger_doc',
        #    hide_format: true,
        #    hide_documentation_path: true
    )

  end
end